package com.lineengine.lineengine.common;

/**
 * @author ycd0075
 * @date 2023-03-22 18:11
 */
public enum  CommonErrorCode implements IErrorCode{
    SUCCESS("200"),
    ACCEPTED("202"),
    BAD_REQUEST("400"),
    UNAUTHORIZED("401"),
    FORBIDDEN("403"),
    NOT_FOUND("404"),
    NOT_ACCEPTABLE("406"),
    CONFLICT("409"),
    INVALID_PARAMETER("422"),
    OVER_ACCESS_LIMIT("425"),
    INTERNAL_SERVER_ERROR("500"),
    SERVICE_UNAVAILABLE("503");

    private final String code;

    private CommonErrorCode(String code) {
        this.code = code;
    }

    @Override
    public String getCode() {
        return this.code;
    }
}
